<%-- 
    Document   : addAcctManager
    Created on : Feb 24, 2012, 6:12:04 PM
    Author     : Hiroroi
--%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.text.DateFormat"%>
<%@page import="java.sql.PreparedStatement"%>
<%@page import="java.sql.Connection"%>
<%@page import="DBConnection.ConnectionFactory"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Add Accounting Manager</title>
        
        <link rel = "stylesheet" href= "css/main.css" type="text/css"/>
        <link rel = "stylesheet" href= "css/menu.css" type="text/css"/>
    </head>
    <body>
         <%

        String username = (String)session.getAttribute("username");
        String userType = (String)session.getAttribute("userType");
        
        if((String)session.getAttribute("username")== null)
            {
            response.sendRedirect("adminIndex.jsp");
            }
        else if((String)session.getAttribute("userType")== "3")
            {
            response.sendRedirect("acctMgrHomePage.jsp");
            }
        else if((String)session.getAttribute("userType")== "2")
            {
            response.sendRedirect("prodMgrHomePage.jsp");
            }
        else if((String)session.getAttribute("userType")== "4")
            {
            response.sendRedirect("userHomePage.jsp");
            }
        else{
        
        out.print("Hello ");
        out.print(username);
        }
        %>
         <%--header--%>
        <div id="header">
           
        </div>
        <%--header--%>
        
        
        <%--menu--%>
        <div id="tabs24">   
             <ul>          
                <li><a href="addProdMgr.jsp" >Create Product Mgr</a></li>
                <li><a href="addAccntMgr.jsp" >Create Accounting Mgr</a></li>
                <li><a href="bookPage.jsp">View Accounts</a></li>
             </ul>   
        </div>
        <%--menu--%>
        
        <div class="wrapper">
        <%--centercontent--%>
        
        <div id="center">
           
            <label>Create Accounting Manager</label>
            <br>
            <form class="LogForm" name ="addAcctManager" method ="post" action="addAcctMgrAction.jsp">
            First Name: <input type ="text" name ="fName"><br>
            Middle Name: <input type ="text" name="mName"><br>
            Last Name: <input type ="text" name ="lName"><br>
            Email Address: <input type="text" name="eAdd"><br> 
            Username: <input type ="text" name ="username"><br>
           
            <input type="submit" name="submit" value ="Create"/>
        </form>
            
           </div>
        </div>
       <%--centercontent--%>
        
        <div class="clear"></div>
       <%-- footer --%>
        <div id="footer">
             <a style=" margin-right: 20px; font-family: arial;float: right; color:white"href="adminLogout.jsp">Log Out</a>
        </div>
        <%-- footer --%>
        
    </center>
    </body>
</html>